package cn.iocoder.yudao.module.member.dal.mysql.newsStudyInfo;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.member.dal.dataobject.newsStudyInfo.NewsStudyInfoDO;
import cn.iocoder.yudao.module.member.dal.dataobject.newsStudyInfo.NewsStudyRankingDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 新闻信息(成果信息) Mapper
 *
 * @author 管理员
 */
@Mapper
public interface NewsStudyRankingMapper extends BaseMapperX<NewsStudyRankingDO> {

    Integer getNewsStudyWeight();

    int deleteNewsRankingInfo(@Param("queryType") String queryType,@Param("id") Long id ,@Param("type") Integer type );

    List<NewsStudyRankingDO> getNewsStudyRankingList(@Param("type") Integer type);

    void rankingInfoSort(@Param("list") List<NewsStudyRankingDO> list);


    int getNewsRankingInfoExist(@Param("id") Long id ,@Param("type") Integer type );
}
